﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HotelManagement.Class;
using System.Collections;

namespace HotelManagement
{
    public partial class CreateCheckOutGuest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                ArrayList bookingIdList = BookingAndRoomAvailabilityDBManager.GetAllBookingID();
                ddlBookingID.DataSource = bookingIdList;
                ddlBookingID.DataBind();
                ddlBookingID.SelectedValue = "View All";

                ArrayList roomIdList = BookingAndRoomAvailabilityDBManager.GetAllRoomID();

            }

        }

        protected void btnCheckOutByBookingID_Click(object sender, EventArgs e)
        {
            int bookingId = Convert.ToInt32(ddlBookingID.Text);
            string querystring = "BookingID=" + bookingId;
            Server.Transfer("ConfirmAdditionalBookingInformation.aspx?" + querystring);
        }

        
    }
}